package cn.kennylee.codehub.springboot.microtrace.condition;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p> 是否启用链路追踪注解 </p>
 * <p>Created on 2025/5/10.</p>
 *
 * @author kennylee
 * @since 0.0.1
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Conditional(OnTraceEnabledCondition.class)
public @interface ConditionalOnTraceEnabled {
}


